package uicgas.globaldata;

import uicgas.pump.misc.Config;

public enum ClientTypes
{
	PUMP(20, Messages.CONNECTPUMP, Config.SERVER_PORT_PUMP), REGISTER(5,
			Messages.CONNECTREGISTER, Config.SERVER_PORT_Register);

	private int maxConnectionNumber;

	private Messages registerMessage;

	private int connectionPort;

	private ClientTypes(int maxConnectionNumber, Messages registerMessage,
			int connectionPort)
	{
		this.maxConnectionNumber = maxConnectionNumber;
		this.registerMessage = registerMessage;
		this.connectionPort = connectionPort;
	}

	public int getMaxConnectionNumber()
	{
		return maxConnectionNumber;
	}

	public Messages getRegisterMessage()
	{
		return registerMessage;
	}

	public int getConnectionPort()
	{
		return connectionPort;
	}
}
